package com.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 渠道
 * </p>
 *
 * @author kutty
 * @since 2018-10-15
 */
@TableName("ali_channel")
public class Channel extends Model<Channel> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 渠道名称
     */
    @TableField("ch_name")
    private String chName;
    /**
     * 对接人
     */
    private String contact;
    /**
     * 备注
     */
    private String remark;
    /**
     * 对接地址
     */
    @TableField("return_url")
    private String returnUrl;
    /**
     * 是否使用(1代表使用，2代表未使用)
     */
    @TableField("is_use")
    private Integer isUse;
    /**
     * 时间
     */
    private Date date;

    /**
     * 需要返回的参数(用逗号隔开)
     * */
    @TableField("return_param")
    private String returnParam;

    public String getReturnParam(){
        return returnParam;
    }

    public void setReturnParam(String returnParam){
        this.returnParam = returnParam;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getChName() {
        return chName;
    }

    public void setChName(String chName) {
        this.chName = chName;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getReturnUrl() {
        return returnUrl;
    }

    public void setReturnUrl(String returnUrl) {
        this.returnUrl = returnUrl;
    }

    public Integer getIsUse() {
        return isUse;
    }

    public void setIsUse(Integer isUse) {
        this.isUse = isUse;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Channel{" +
        "id=" + id +
        ", chName=" + chName +
        ", contact=" + contact +
        ", remark=" + remark +
        ", returnUrl=" + returnUrl +
        ", isUse=" + isUse +
        ", date=" + date +
        "}";
    }
}
